import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isLogin: false,
    registerInfo: {},
    isShowTabbar: true,
    isShowTabs: true
  },
  mutations: {
    setRegisterInfo(state, val) {
      Vue.set(state.registerInfo, val.key, val.value);
    },
    isLogin(state, val) {
      state.isLogin = val;
    },
    isShowTabbar(state, val) {
      state.isShowTabbar = val;
    },
    isShowTabs(state, val) {
      state.isShowTabs = val;
    }
  },
  actions: {},
  modules: {}
})
